package com.dime.physical.service.impl;

import java.util.List;
import com.ruoyi.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.dime.physical.mapper.DimeInquiryradiationotherMapper;
import com.dime.physical.domain.DimeInquiryradiationother;
import com.dime.physical.service.IDimeInquiryradiationotherService;

/**
 * 问诊放射史其他Service业务层处理
 * 
 * @author Tiny
 * @date 2023-10-07
 */
@Service
public class DimeInquiryradiationotherServiceImpl implements IDimeInquiryradiationotherService 
{
    @Autowired
    private DimeInquiryradiationotherMapper dimeInquiryradiationotherMapper;

    /**
     * 查询问诊放射史其他
     * 
     * @param id 问诊放射史其他主键
     * @return 问诊放射史其他
     */
    @Override
    public DimeInquiryradiationother selectDimeInquiryradiationotherById(String id)
    {
        return dimeInquiryradiationotherMapper.selectDimeInquiryradiationotherById(id);
    }

    /**
     * 查询问诊放射史其他列表
     * 
     * @param dimeInquiryradiationother 问诊放射史其他
     * @return 问诊放射史其他
     */
    @Override
    public List<DimeInquiryradiationother> selectDimeInquiryradiationotherList(DimeInquiryradiationother dimeInquiryradiationother)
    {
        return dimeInquiryradiationotherMapper.selectDimeInquiryradiationotherList(dimeInquiryradiationother);
    }

    /**
     * 新增问诊放射史其他
     * 
     * @param dimeInquiryradiationother 问诊放射史其他
     * @return 结果
     */
    @Override
    public int insertDimeInquiryradiationother(DimeInquiryradiationother dimeInquiryradiationother)
    {
        dimeInquiryradiationother.setCreateTime(DateUtils.getNowDate());
        return dimeInquiryradiationotherMapper.insertDimeInquiryradiationother(dimeInquiryradiationother);
    }

    /**
     * 修改问诊放射史其他
     * 
     * @param dimeInquiryradiationother 问诊放射史其他
     * @return 结果
     */
    @Override
    public int updateDimeInquiryradiationother(DimeInquiryradiationother dimeInquiryradiationother)
    {
        dimeInquiryradiationother.setUpdateTime(DateUtils.getNowDate());
        return dimeInquiryradiationotherMapper.updateDimeInquiryradiationother(dimeInquiryradiationother);
    }

    /**
     * 批量删除问诊放射史其他
     * 
     * @param ids 需要删除的问诊放射史其他主键
     * @return 结果
     */
    @Override
    public int deleteDimeInquiryradiationotherByIds(String[] ids)
    {
        return dimeInquiryradiationotherMapper.deleteDimeInquiryradiationotherByIds(ids);
    }

    /**
     * 删除问诊放射史其他信息
     * 
     * @param id 问诊放射史其他主键
     * @return 结果
     */
    @Override
    public int deleteDimeInquiryradiationotherById(String id)
    {
        return dimeInquiryradiationotherMapper.deleteDimeInquiryradiationotherById(id);
    }
}
